package com.cnc.service;

import com.cnc.entity.Admin;
import com.cnc.entity.Student;
import com.cnc.utils.PageUtil;
import com.cnc.utils.SearchUtil;

import java.util.List;

public interface StudentService {
    List<Student> getAllStudent();

    boolean deleteStudent(int id);

    boolean insertStudent(Student s);

    boolean updateStudent(int Sid, String field, String value);

    int getCountRows(SearchUtil su);

    List<Student> getStudentByPage(PageUtil pu);

    int getMaxId();

    Student getStudentBySid(String sid);

    boolean editStudent(Student s);

    public List<Student> searchStudent(SearchUtil su, PageUtil pu);
}
